package com.azthink.chapter511;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//@Component
public class BlogProperties {

    //@Value("${com.didispace.blog.name}")
    private String name;

    //@Value("${com.didispace.blog.title}")
    private String title;


    //@Value("${com.didispace.blog.desc}")
    private String remark;

    //@Value("${com.didispace.blog.test1}")
    private Integer test1;

   // @Value("${com.didispace.blog.test2}")
    private Integer test2;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getTest1() {
        return test1;
    }

    public void setTest1(Integer test1) {
        this.test1 = test1;
    }

    public Integer getTest2() {
        return test2;
    }

    public void setTest2(Integer test2) {
        this.test2 = test2;
    }

    @Override
    public String toString() {
        return "BlogProperties{" +
                "name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", remark='" + remark + '\'' +
                ", test1=" + test1 +
                ", test2=" + test2 +
                '}';
    }
}
